package com.loveprogrammer.cloud.feign;

import com.loveprogrammer.cloud.entity.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 订单接口feign远程调用
 * @author qianxu
 * @create 2024-05-27 10:55
 */
@FeignClient("huashan-order")
public interface OrderFeignService {

    /**
     * 创建订单
     * @param order
     * @return
     */
    @PostMapping("/order/create")
    public boolean createOrder(@RequestBody Order order);

}
